#include <deCamera_priv.hpp>
Inheritance diagram for deCamera:


Public Member Functions | |
| deCamera (void) | |
| deCamera (const deCamera &ref) | |
| ~deCamera (void) | |
| long | Release () |
| deletes the object | |
| void | SetWindow (HWND window) |
| Match the camera with a window handle. Multiple cameras may share a window handle. | |
| void | SetRect (deRect rect) |
| Set the client rect of the camera's viewport, which the scene will be rendered into. | |
| void | SetFOV (deDouble Degrees) |
| Set the horizontal Field-of-View of the camera, in degrees. | |
| void | SetScreenAspect (long PixelWidth, long PixelHeight, deDouble AspectRatio) |
| Set the screen aspect ratio (AspectRatio = 4/3 or 16/9, defaults to 4/3). | |
| void | SetClip (deDouble Near, deDouble Far) |
| Set the near and far clip planes of the camera's viewport. | |
| void | FogEnable (deBoolean Enable) |
| void | SetFog (deFloat Near, deFloat Far, deARGB Color, deBoolean RangeFog) |
| void | SetOrthoWidth (deDouble Width) |
| Set the width of the camera, if it will be an orthographic projection. | |
| void | EnableOrtho (deBoolean OrthoEnable) |
| Enable or disable an orthographic (parallel) projection mode. | |
| deBoolean | BuildRootFrustum (IdePlaneFrustum *pFrustum) |
| Build a frustum from this camera based on its rect and transform. | |
| deVec3d | ScreenPointToWorldVec (int x, int y, deVec3d *StartPosition) |
| deBoolean | WorldPosToScreenPos (const deVec3d &pos, int &x, int &y) |
| Transforms a 3D world position into an (x,y) pair on the screen. | |
| deBoolean | FrustumRect (const IdePlaneFrustum *f, deRect &r) |
| HWND | GetWindow () |
| Retrieve the associated window handle. | |
| deRect | GetRect () |
| Retrieve the screenrect the camera is using. | |
| deDouble | GetFOV () |
| Retrieve the horizontal Field-of-View of the camera, in degrees. | |
| deDouble | GetFOVy (deDouble &Aspect) |
| deDouble | GetNearClip () |
| Retrieve the near clip plane distance. | |
| deDouble | GetFarClip () |
| Retrieve the far clip plane distance. | |
| deDouble | GetOrthoWidth () |
| Retrieve the orthogrpahic width of the camera. | |
| deBoolean | IsOrtho () |
| deBoolean | GetFog (deFloat &Near, deFloat &Far, deARGB &Color, deBoolean &RangeFog) |
| void | LockAspect (deDouble Aspect) |
| deTransformInfo & | Position () |
Private Attributes | |
| HWND | m_hWnd |
| deBoolean | m_IsOrtho |
| deBoolean | m_FogEnable |
| deBoolean | m_RangeFog |
| deBoolean | m_AspectLocked |
| deARGB | m_FogColor |
| deFloat | m_NearFog |
| deFloat | m_FarFog |
| deDouble | m_OrthoWidth |
| deDouble | m_NearClip |
| deDouble | m_FarClip |
| deDouble | m_FOV |
| deDouble | m_FOVy |
| deDouble | m_LastAspect |
| deDouble | m_PixelAspect |
| deRect | m_Viewport |
| deTransform | m_Position |
|
|
|
|
|
|
|
|
|
|
|
Build a frustum from this camera based on its rect and transform.
Implements IdeCamera. |
|
|
Enable or disable an orthographic (parallel) projection mode.
Implements IdeCamera. |
|
|
Implements IdeCamera. |
|
||||||||||||
|
Clips a screen rect to the input frustum
Implements IdeCamera. |
|
|
Retrieve the far clip plane distance.
Implements IdeCamera. |
|
||||||||||||||||||||
|
Implements IdeCamera. |
|
|
Retrieve the horizontal Field-of-View of the camera, in degrees.
Implements IdeCamera. |
|
|
Retrieve the vertical Field-of-View of the camera, in radians
Implements IdeCamera. |
|
|
Retrieve the near clip plane distance.
Implements IdeCamera. |
|
|
Retrieve the orthogrpahic width of the camera.
Implements IdeCamera. |
|
|
Retrieve the screenrect the camera is using.
Implements IdeCamera. |
|
|
Retrieve the associated window handle.
Implements IdeCamera. |
|
|
Tell whether the camera is using an orthographic projection or not
Implements IdeCamera. |
|
|
Used to lock the aspect of a camera in order to cause a distorted image to render. The return value from GetFOVy will be unaffected by the Aspect actually fed to it.
Implements IdeCamera. |
|
|
The current transformation of the camera
Implements IdeCamera. |
|
|
deletes the object
Implements IdeCamera. |
|
||||||||||||||||
|
Retrieve a vector in world-space corresponding to a screen position.
Implements IdeCamera. |
|
||||||||||||
|
Set the near and far clip planes of the camera's viewport.
Implements IdeCamera. |
|
||||||||||||||||||||
|
Implements IdeCamera. |
|
|
Set the horizontal Field-of-View of the camera, in degrees.
Implements IdeCamera. |
|
|
Set the width of the camera, if it will be an orthographic projection.
Implements IdeCamera. |
|
|
Set the client rect of the camera's viewport, which the scene will be rendered into.
Implements IdeCamera. |
|
||||||||||||||||
|
Set the screen aspect ratio (AspectRatio = 4/3 or 16/9, defaults to 4/3).
Implements IdeCamera. |
|
|
Match the camera with a window handle. Multiple cameras may share a window handle.
Implements IdeCamera. |
|
||||||||||||||||
|
Transforms a 3D world position into an (x,y) pair on the screen.
Implements IdeCamera. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.3-rc3